import request from "../uilts/request";

//获取部门管理列表
export function bumen1(params={}) {
    return request({
        url: "api/department/search",
        method: "GET",
        params
    })
}
//新增部门管理列表
export function add(data) {
    return request({
        url: "/api/department/add",
        method: "POST",
        data
    })
}
//获取分公司
export function getCompany(params={}) {
    return request({
        url: "/api/company/search",
        method: "GET",
        params
    })
}
//删除部门管理列表
export function del(id) {
    return request({
        url: "api/department/delete/"+id,
        method: "DELETE",
    })
}
//修改部门管理列表
export function modify(n) {
    return request({
        url: "api/department/modify",
        method: "PUT",
        data:n
    })
}
//获取各分公司下部门信息
export function getCompanyView(id) {
    return request({
        url: "/api/department/view2/"+id,
        method: "GET"
    })
}
//获取员工信息
export function yuangong(params={}) {
    return request({
        url: "api/employee/search",
        method: "GET",
        params
    })
}
//新增员工
export function addyuangong(m) {
    return request({
        url: "api/employee/add",
        method: "POST",
        data:m
    })
}
//删除员工
export function delyuangong(id) {
    return request({
        url: "/api/employee/delete/"+id,
        method: "DELETE",
    })
}
//修改员工信息
export function modifyyuangong(n) {
    return request({
        url: "/api/employee/modify",
        method: "PUT",
        data:n
    })
}
//获取职位信息
export function zhiwei(params={}) {
    return request({
        url: "/api/job/search",
        method: "GET",
        params
    })
}
//获取各部门下职位信息信息
export function getDepartView(id) {
    return request({
        url: "/api/job/view2/"+id,
        method: "GET"
    })
}
//新增职位
export function addzhiwei(m) {
    return request({
        url: "/api/job/add",
        method: "POST",
        data:m
    })
}
//删除职位
export function delzhiwei(id) {
    return request({
        url: "/api/job/delete/"+id,
        method: "DELETE",
    })
}
//修改职位信息
export function modifyzhiwei(n) {
    return request({
        url: "/api/job/modify",
        method: "PUT",
        data:n
    })
}
//获取公司信息
export function gongsi(params={}) {
    return request({
        url: "/api/company/search",
        method: "GET",
        params
    })
}
//获取全部公司信息，正序
export function companyAll(params={}) {
    return request({
        url: "/api/company/searchAll",
        method: "GET",
        params
    })
}
//新增公司
export function addgongsi(m) {
    return request({
        url: "/api/company/add",
        method: "POST",
        data:m
    })
}
//删除公司
export function delgongsi(id) {
    return request({
        url: "/api/company/delete/"+id,
        method: "DELETE",
    })
}
//修改公司信息
export function modifygongsi(n) {
    return request({
        url: "/api/company/modify",
        method: "PUT",
        data:n
    })
}
//获取客户回访信息
export function huifang(params={}) {
    return request({
        url: "/api/recall/search",
        method: "GET",
        params
    })
}
//新增客户回访信息
export function addhuifang(m) {
    return request({
        url: "/api/recall/add",
        method: "POST",
        data:m
    })
}
//删除客户回访信息
export function delhuifang(id) {
    return request({
        url: "/api/recall/delete/"+id,
        method: "DELETE",
    })
}
//修改客户回访信息
export function modifyhuifang(n) {
    return request({
        url: "/api/recall/modify",
        method: "PUT",
        data:n
    })
}



